package com.joesem.sale.client.logic.home

import android.app.Application
import androidx.lifecycle.viewModelScope
import com.joesem.sale.client.base.BaseViewModel
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch


class LaunchViewModel(application: Application) : BaseViewModel(application) {
    init {
//        getDate()
    }

    private fun getDate() {
        viewModelScope.launch {
            var time: Int
            for (i in 1 downTo 1) {
                delay(1000)
                time = i
                actionIntent( Timing(time))
            }
        }
    }
     class Timing(val value: Int)
}